# Copyright 2012-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=4

inherit autotools eutils subversion

DESCRIPTION="PKCS#11 library for Gemalto .NET V2 smart cards"
HOMEPAGE="http://smartcardservices.macosforge.org/trac/browser/trunk/SmartCardServices/src/PKCS11dotNetV2"

ESVN_REPO_URI="https://svn.macosforge.org/repository/smartcardservices/trunk/SmartCardServices/src/PKCS11dotNetV2"
ESVN_PROJECT="PKCS11dotNetV2"

LICENSE="LGPL"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

RDEPEND="dev-libs/boost
	 sys-apps/pcsc-lite"
DEPEND="${RDEPEND}
	virtual/pkgconfig"

src_prepare() {
	eautoreconf
}

src_configure() {
	econf --enable-system-boost
}

pkg_postinst() {
	elog
	elog "There is currently a bug in dev-libs/nss-3.14 which breaks"
	elog "this PKCS#11 library. See:"
	elog "    https://bugs.gentoo.org/show_bug.cgi?id=443468"
	elog
}
